import { useNavigate } from "react-router-dom";
import Words from "./Words/Words";
import { useEffect } from "react";

const Auth = () => {
    const navigate = useNavigate();
    useEffect(() => {
        if (!localStorage["userInfo"]) {
            navigate("/login", { replace: true });
        }
    }, []);

    return <Words />;
};

export default Auth;
